package com.wzdigit.wms.basic.client.request.basic;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改批次属性状态输入
 * @author yangdongjie
 * @GetWarehouseListRequest.java
 * @2020年12月31日下午3:40:49
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class UpdateStatusLotAttrRequest implements Serializable {

	private static final long serialVersionUID = 3282836993215446418L;

	/**
	 * 批次属性ID
	 */
	@ApiModelProperty(value = "批次属性ID", required = true)
	@NotNull(message = "批次属性ID不能为空")
	private Integer lotAttrId;
	
	/**
     * 状态
     */
	@ApiModelProperty(value = "状态", required = true)
	@NotNull(message = "状态不能为空！")
	@Range(min = 0, max = 1, message = "状态错误")
    private Integer isEnabled;
}
